# -*- coding: UTF-8 -*-
'''
Created on 02/10/2014

@author: Eduardo Cardeira - Num 6033

Exemplo 5 da Aula Teorica 2

'''

for i in range(0, 10):
    print i * i
l1 = range(20, 30)
print
soma = 0
for x in l1:
    soma += x
print soma
print
for k in xrange(20, 0, -1):
    if k > 10:
        print k
    else:
        print 2 * k
pass